import 'package:flutter/material.dart';

class RatingStart extends StatefulWidget {
  final IconData icon;
  final Color color;
  final double size;
  final double spacing;

  RatingStart({this.icon, this.color, this.size, this.spacing});

  @override
  _RatingStartState createState() => new _RatingStartState();
}

class _RatingStartState extends State<RatingStart> {
  @override
  Widget build(BuildContext context) {
    return new Container(
        padding: new EdgeInsets.symmetric(
          vertical: widget.spacing ?? 10.0,
          horizontal: (widget.spacing ?? 10.0) * 2,
        ),
        child: new Icon(
          widget.icon ?? Icons.star_border,
          size: widget.size ?? 45.0,
          color: widget.color ?? Colors.orangeAccent,
        ),
    );
  }
}